<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="author" content="Mickael Faivre-Macon" />
	<meta name="keywords" content="ptm, project, task, manager" />
	<meta name="description" content="A project and task manager" />
	<meta name="robots" content="all" />
	<title>Task print</title>
	<style type="text/css" title="currentStyle">
		@import '/stylesheets/print.css';
	</style>
	<link rel="Shortcut Icon" type="image/x-icon" href="/images/favicon.ico" />	
</head>
<body>
<div id="project"><%= @project_name %></div>
<% if @task -%>
  <div id="task"><%= @task.title %> <%= @task.duedate %></div>
  <ul>
  <%= render(:partial=>'task_print', :collection=>sort_tasks(@task.subtasks)) %>
  </ul>
<% else -%>
  <ul>
  <%= render(:partial=>'task_print', :collection=>sort_tasks(@tasks)) %>
  </ul>
<% end -%>
</body>
</html>
